﻿
public class Exercise1 {
	//定义枚举
    public enum Week{
    	MON,TUE,WED,THU,FRI,SAT,SUN
    }
    /**
     * 查看日程安排
     * @param day 星期几
     */
    public void doWhat(Week day){
    	switch(day){
    	case MON:
    	case TUE:
    	case WED:
    	case THU:
    	case FRI:
    		System.out.println("工作日,努力写代码!");
    		break;
    	case SAT:
    		System.out.println("星期六,休息！看电影");
    		break;
    	case SUN:
    		System.out.println("星期天,休息！打篮球");
    		break;
    		default:
    			System.out.println("地球上一个星期就7天");
    			break;
    	}
    }
	public static void main(String[] args) {
		Exercise1 e=new Exercise1();
		e.doWhat(Week.THU);
		Week sat=Week.SAT;
		e.doWhat(sat);
	}

}
